<?php

namespace App\Model;

use App\User;
use Illuminate\Database\Eloquent\Model;

class Task extends Model
{
    //
    protected $dates = ['deleted_at'];
    protected $table = 'tasks';
    protected $primaryKey = 'task_id';
    protected $fillable = [
        'form_record_id',
        'title',
        'task_desc',
        'start_time',
        'end_time',
        'status',
        'next_to',
        'step',
        'delay_to',
        'end_time_new',
        'created_by',
        'updated_by',
    ];
    protected $appends = [ ];
//	protected $appends = ['status_title', 'start_time', 'end_time', 'time_diff', 'time_elapse', 'time_left', 'progress', ];
    protected $casts = [
        'step' => 'integer',
    ];

    //获取任务审核人
//    public function superPeople(){
//        $this->morphToMany(User::class,'userable','userables','userable_id','user_user_id')->select(User::$colsList);
//
//    }
}
